package com.yuan.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Order(1)
public class MyValidate {

    @Before(value = "com.yuan.mypointcut.MyPointCut.myPointCut()")
    public void MyValidateMethod() {
        System.out.println("====>MyValidate() 前置通知>>>>验证数据是否合法 ");
    }

}
